import { PageVO } from '@/common/vo';

export interface CreditLimitReqDTO {
    businessDate: string, // 业务日期
    fundKindTypeList: string[], // 授信产品分类
    creditKindIdList: string[], // 授信品种
    excessDegree: boolean, // 超额度
    quotaTypeList: string[], // 额度分类
    orgTypeList: string[], // 授信主体类型
    orgCodeList: [], // 授信主体
    orgCode: '', // 授信主体模糊查询
    realCreditQuotaIsNoZero: boolean, // 实际额度为0
    different: boolean, // 实际额度与明细不一致
    paging?: PageVO
}

export interface CreditLimitVO {
    resultId: number, // 结果ID
    ruleId: number, // 授信额度编号
    fundKindType: string, // 授信产品分类
    orgCode: string, // 授信主题
    orgType: string, // 授信主题类型
    quotaType: string, // 额度分类
    creditKindId: string, // 授信品种
    creditQuota: number, // 授信额度
    buissnessData: number, // 业务日期
    currencyNo: string, // 币种
    calDate: number, // 计算日期
    calTime: number, // 计算时间
    calValue: number, // 计算值
    thresholdType: string, // 阈值类型
    coincidence: string, // 实际额度与明细是否一致
    detail?: CreditLimitDetailVO[]
}

export interface CreditLimitDetailVO {
    resultId: number, // 结果ID
    detailReId: number, // 结果详情ID
    fundCode: string,
    stockCode: string,
    orgCode: string, // 授信主体
    dateType: string, // 数据类型 0持仓1指令
    marketValue: number, // 持仓市值(亿元)
}

export interface CreditLimitRepVO {
    [x: string]: any;
    list: CreditLimitVO[],
    paging: PageVO
}
